Release 10.1A: OpenEdge Development:
Internationalizing Applications
Collations and collation tables
A collation is a set of rules that determine how character data is ordered. OpenEdge provides a set of collation tables to sort and compare character data. OpenEdge also supports the International Components for Unicode (ICU) collations, which provide linguistic sorting of Unicode data based on the Unicode Collation Algorithm. OpenEdge uses a collation when it:
- Compares
CHARACTERstrings using a 4GL relational operator or the 4GLCOMPAREfunction.- Generates the collation value of a
CHARACTERdata item using the 4GLCOLLATEoption of theFORstatement, theOPENQUERYstatement, and thePRESELECTphrase.- Sorts the results of a 4GL query that uses the FOR statement’s
BYorEACHoption.- Builds or rebuilds databases indexes.
Use the Collation Table (
-cpcoll) startup parameter to specify the ICU collation or OpenEdge collation table you want use. You can also specify an OpenEdge collation or an ICU collation with the 4GLCOMPAREfunction and theCOLLATEoption on the 4GLFORstatement,OPENQUERYstatement, andPRESELECTphrase.Figure 3–3 shows code page 1253’s GREEK collation table, which resides in the
greek.datfile.
Figure 3–3: Code page 1253’s GREEK collation table
Figure 3–3 shows that the collation table has two sections, one for case-insensitive sorts and one for case-sensitive sorts. Each section has a value for each element in the code page. The value of an element represents the sort order of that element. For example, in a case-insensitive sort that uses this collation table, element 1 sorts first and element 97 sorts sixty-sixth.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |